package com.onlinelibrary.mapper;

import com.onlinelibrary.pojo.Borrow;
import com.onlinelibrary.pojo.HisBorrow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface HisBorrowMapper {


    @Select("select * from hisBorrow where state!=5 and state!=6")
    List<Borrow> list();

    List<Borrow> getBorrows(Borrow borrow);

    @Select("select * from HisBorrow")
    List<Borrow> getAllBorrows(Borrow borrow);

    Integer insertHisBorrow(Borrow borrow);
}
